home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>GlobalScope [Runtime]</title><meta name="filename" content="text/sbasic/common/03131900"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> p.P1{ } p.P2{ } p.P3{ } p.P4{ } span.T1{ font-weight:bold;} </style></head><body> <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="globalscope" xmlns:help="http://openoffice.org/2000/help"> <p class="Head1"><help:paragraphinfo state="U" number="1"/><help:key-word value="GlobalScope; function" tag="kw68579_1"/><help:key-word value="library system" tag="kw68579_5"/><help:key-word value="LibraryContainer" tag="kw68579_4"/><help:key-word value="BasicLibraries; LibraryContainer" tag="kw68579_3"/><help:key-word value="DialogLibraries; LibraryContainer" tag="kw68579_2"/><help:link Id="68579">GlobalScope [Runtime]</help:link></p> <p class="Paragraph"><help:paragraphinfo state="U" number="2"/>Basic source code and dialogs are organized in a library system.</p> <help:paragraphinfo state="E"/></help:to-be-embedded> <ul class="L1"> <li class=""> <p class="P2"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>The LibraryContainer contains libraries</p> </li> <li class=""> <p class="P2"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>Libraries can contain modules and dialogs</p> </li> </ul> <p class="Head2"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>In Basic:</p> <ul class="L2"> <li class=""> <p class="P3"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>The LibraryContainer is called <span class="T1">BasicLibraries</span>.</p> </li> </ul> <p class="Head2"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>In dialogs:</p> <ul class="L3"> <li class=""> <p class="P4"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/>The LibraryContainer is called <span class="T1">DialogLibraries</span>.</p> </li> </ul> <p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>Both LibraryContainers exist in an application level and within every document. In the document Basic, the document's LibraryContainers are called automatically. If you want to call the global LibraryContainers from within a document, you must use the keyword <span class="T1">GlobalScope</span>.</p> <p class="Head2"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>Syntax:</p> <p class="Paragraph"><help:paragraphinfo state="U" number="11" xmlns:help="http://openoffice.org/2000/help"/>GlobalScope</p> <p class="Head2"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>Example:</p> <p class="PropText"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/>Example in the document Basic</p> <p class="PropText"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/>' calling Dialog1 in the document library Standard</p> <p class="PropText"><help:paragraphinfo state="U" number="15" xmlns:help="http://openoffice.org/2000/help"/>oDlgDesc = DialogLibraries.Standard.Dialog1</p> <p class="PropText"><help:paragraphinfo state="U" number="16" xmlns:help="http://openoffice.org/2000/help"/>' calling Dialog2 in the application library Library1</p> <p class="PropText"><help:paragraphinfo state="U" number="17" xmlns:help="http://openoffice.org/2000/help"/>oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2</p> </body></html>